package com.yuyou.train.lesson.vo.req;

import java.math.BigDecimal;

import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;


/**
 * @author 
 */
public class ReqResourceAddrUpdate {

	@ApiModelProperty(value = "ID（为空则新增，不为空则编辑）", required = false)
    private String id;

	@ApiModelProperty(value = "名字", required = true)
	@NotBlank (message="name不能为空")
	@Length(max=20,message="名字(name)长度过长") 
    private String name;

	@ApiModelProperty(value = "资源类别：01：视频，02：音频，03：文件，04：试卷，05：作业（自评作业），06：作业（提交型作业），07：感想", required = true)
	@NotBlank (message="resourceType不能为空")
	private String resourceType;

	@ApiModelProperty(value = "描述", required = true)
	@NotBlank (message="describes不能为空")
	@Length(max=400,message="描述(describes)长度过长") 
    private String describes;

	@ApiModelProperty(value = "要求", required = false)
    private String requirement;

	@ApiModelProperty(value = "来源", required = false)
	@Length(max=200,message="来源长度过长") 
    private String source;

	@ApiModelProperty(value = "资源url", required = false)
    private String resourceUrl;

	@ApiModelProperty(value = "资源大小", required = false)
    private BigDecimal resourceSize;

	@ApiModelProperty(value = "资源图标", required = false)
    private String resourceIcon;

	@ApiModelProperty(value = "资源图片", required = false)
    private String resourceImg;

	@ApiModelProperty(value = "时长", required = false)
	@Min(value = 0, message = "时长必须大于0")
    private Integer time;

	@ApiModelProperty(value = "试卷ID", required = false)
    private String resourceExamId;

	@ApiModelProperty(value = "作业内容", required = false)
	@Length(max=400,message="作业内容(taskContent)长度过长") 
    private String taskContent;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}



	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public String getRequirement() {
		return requirement;
	}

	public void setRequirement(String requirement) {
		this.requirement = requirement;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getResourceUrl() {
		return resourceUrl;
	}

	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}

	public BigDecimal getResourceSize() {
		return resourceSize;
	}

	public void setResourceSize(BigDecimal resourceSize) {
		this.resourceSize = resourceSize;
	}

	public String getResourceIcon() {
		return resourceIcon;
	}

	public void setResourceIcon(String resourceIcon) {
		this.resourceIcon = resourceIcon;
	}

	public String getResourceImg() {
		return resourceImg;
	}

	public void setResourceImg(String resourceImg) {
		this.resourceImg = resourceImg;
	}

	public Integer getTime() {
		return time;
	}

	public void setTime(Integer time) {
		this.time = time;
	}

	public String getResourceExamId() {
		return resourceExamId;
	}

	public void setResourceExamId(String resourceExamId) {
		this.resourceExamId = resourceExamId;
	}

	public String getTaskContent() {
		return taskContent;
	}

	public void setTaskContent(String taskContent) {
		this.taskContent = taskContent;
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

 
}